package com.poposchool.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 *
 * </p>
 *
 * @author wangjie
 * @since 2022-09-09
 */
@Getter
@Setter
@TableName("total_user")
@ApiModel(value = "TotalUser对象", description = "")
@ToString
public class TotalUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("头像id")
    private Long avatarId;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("状态：1启用、0禁用")
    private Long enabled;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("部门名称")
    private Long deptId;

    @ApiModelProperty("手机号码")
    private String phone;

    @ApiModelProperty("岗位名称")
    private Long jobId;

    @ApiModelProperty("最后修改密码的日期")
    private LocalDateTime lastPasswordResetTime;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("性别：1.男，2.女，0.未知")
    private String gender;

    @ApiModelProperty("修改时间")
    private LocalDateTime updateTime;

    private Boolean isDel;

    @ApiModelProperty("城市")
    private String city;

    @ApiModelProperty("省份")
    private String province;

    @ApiModelProperty("国家")
    private String country;

    @ApiModelProperty("用户唯一标识")
    private String openid;

    @ApiModelProperty("会话密钥")
    private String sessionKey;

    @ApiModelProperty("用户在开放平台的唯一标识符")
    private String unionid;

    @ApiModelProperty("注册时间")
    private LocalDateTime createTime;

//    springboot+mybatis-plus自动填充create_time & update_time
    @ApiModelProperty("权限：0.超级管理员，1.管理员，2.普通用户")
    private Long status;


}
